package com.ocom.devicehttp.feign.machine;

import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.resp.RespMachMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "payhandle")
public interface SrvpAccessFeignService {


    @GetMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getDecodeKey)
    RespMachMessage getDecodeKey(@RequestParam("companyId")Long companyId,@RequestParam("machNo") String machNo,@RequestParam("deviceType") Integer deviceType);

    // 更改密钥状态（changeKeyState）
    @PostMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_changeKeyState)
    RespMachMessage changeKeyState(@RequestParam("companyId")Long companyId, @RequestParam("machNo")String machNo,@RequestParam("jobId")String jobId,@RequestParam("deviceType") Integer deviceType);
}
